import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:grab_the_order/app/modules/framework/framework_controller.dart';

class FrameworkView extends GetView<FrameworkController> {
  const FrameworkView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Obx(() => controller.pages[controller.currentIndex.value]),
      bottomNavigationBar: Obx(
        () => BottomNavigationBar(
          currentIndex: controller.currentIndex.value,
          onTap: (index) => controller.changePage(index),
          items: controller.bottomNavItems,
        ),
      ),
    );
  }
}
